Matthias Clasen [Wed, 13 Jan 2016 05:26:48 +0000 (00:26 -0500)]
Update expected output of notebook css node test
The stack node is new.
Matthias Clasen [Wed, 13 Jan 2016 05:24:40 +0000 (00:24 -0500)]
notebook: Document the .dnd style class
We should aim to document all style classes that themes
can encounter during the normal operation of a widget.
Matthias Clasen [Wed, 13 Jan 2016 05:05:16 +0000 (00:05 -0500)]
Use convenience API that was introduced recently
Use gtk_css_gadget_set_state in all the places where we previously
were getting a node from a gadget, just to call gtk_css_node_set_state.
Matthias Clasen [Wed, 13 Jan 2016 05:01:14 +0000 (00:01 -0500)]
builtin icon: Don't save/restore cairo state
The reason why this was introduced is now handled in
gtk_css_stylke_render_icon since commit
0138af9f9684c0ec436b37e5962e9f82607d3ff8.
Matthias Clasen [Wed, 13 Jan 2016 04:57:35 +0000 (23:57 -0500)]
box gadget: Add some documentation
Matthias Clasen [Wed, 13 Jan 2016 04:40:28 +0000 (23:40 -0500)]
box: Document child node ordering
Dominique Leuenberger [Tue, 12 Jan 2016 08:29:00 +0000 (08:29 +0000)]
QEMU USB Tablet is not really a tablet - it's a trick
Unfortunately, Qemu gives us this confusing device to work with,
and the best we can do is filter it out based on its name.
https://bugzilla.gnome.org/show_bug.cgi?id=760445
Ting-Wei Lan [Mon, 11 Jan 2016 03:46:45 +0000 (11:46 +0800)]
broadway: Call setlocale in main function of broadwayd
It is required to correctly show translated messages on some locales.
https://bugzilla.gnome.org/show_bug.cgi?id=760416
Timm Bäder [Tue, 12 Jan 2016 20:37:27 +0000 (21:37 +0100)]
switch: Fix text positioning
https://bugzilla.gnome.org/show_bug.cgi?id=760509
Timm Bäder [Tue, 12 Jan 2016 20:36:37 +0000 (21:36 +0100)]
switch: Don't include margins in input window size
https://bugzilla.gnome.org/show_bug.cgi?id=760509
Timm Bäder [Tue, 12 Jan 2016 19:25:25 +0000 (20:25 +0100)]
modelbutton: Don't include margins in input window size
https://bugzilla.gnome.org/show_bug.cgi?id=760509
Timm Bäder [Tue, 12 Jan 2016 19:18:08 +0000 (20:18 +0100)]
button: Don't include margins in input window size
And do the same thing for GtkCheckButton
https://bugzilla.gnome.org/show_bug.cgi?id=760509
Timm Bäder [Fri, 8 Jan 2016 16:30:47 +0000 (17:30 +0100)]
entry: typo
Alberts Muktupāvels [Tue, 12 Jan 2016 07:51:26 +0000 (09:51 +0200)]
gdkseat: remove return from gdk_seat_ungrab
Timm Bäder [Tue, 12 Jan 2016 08:32:04 +0000 (09:32 +0100)]
Remove stray semicolon
Gets rid of a mixed code/declaration warning.
Matthias Clasen [Tue, 12 Jan 2016 04:20:26 +0000 (23:20 -0500)]
HighContrast: Fix selection in .views
Copy Adwaita fixes from
21a2fce8ba2a48fe3781e7a1f02b33e3a7bfd9ac.
Matthias Clasen [Tue, 12 Jan 2016 03:48:35 +0000 (22:48 -0500)]
Fix corner manipulation when growing rounded rects
This addresses problems with uneven border radius',
pointed out by Lapo.
Ben Iofel [Tue, 12 Jan 2016 00:13:30 +0000 (19:13 -0500)]
GTK Notebook: use the right enum type
Lapo Calamandrei [Tue, 12 Jan 2016 00:03:47 +0000 (01:03 +0100)]
Adwaita: popover style fixes
Lapo Calamandrei [Mon, 11 Jan 2016 23:16:12 +0000 (00:16 +0100)]
Adwaita: make selection visible in treeview derived widgets
See https://bugzilla.gnome.org/show_bug.cgi?id=757503
Hashem Nasarat [Mon, 11 Jan 2016 06:02:41 +0000 (01:02 -0500)]
Adwaita: fix separator margin in popovers
Commit
0b96b8a1 set margins via css, but accidentally changed the
semantics of margins for separators in popovers so that any separator
in a gtkpopover had a margin. This meant that the separators in
GtkListBoxes in popovers also had a margin around their separators, and
this is not what we want because it doesn't match separators in
listboxes not in popovers.
https://bugzilla.gnome.org/show_bug.cgi?id=760427
Matthias Clasen [Mon, 11 Jan 2016 20:09:47 +0000 (15:09 -0500)]
Improve deprecation note for gdk_device_manager_get_client_pointer
List gdk_seat_get_pointer as replacement. Suggested in
https://bugzilla.gnome.org/show_bug.cgi?id=759785
Matthias Clasen [Mon, 11 Jan 2016 20:06:15 +0000 (15:06 -0500)]
Fix the deprecation note for gdk_device_manager_list_devices
Pointed out in https://bugzilla.gnome.org/show_bug.cgi?id=759785
Matthias Clasen [Mon, 11 Jan 2016 20:04:32 +0000 (15:04 -0500)]
Fix the annotation for gdk_seat_get_slaves
Pointed out in https://bugzilla.gnome.org/show_bug.cgi?id=759785
Carlos Garnacho [Mon, 11 Jan 2016 19:06:14 +0000 (20:06 +0100)]
GtkWidget: Fix motion event consumption detection for touch-only gestures
If a GtkGestureSingle is set as touch-only, pointer events would be
discarded without giving an opportunity to the regular GtkGesture
handler to manage those.
Because the pointer events weren't actually managed by the gesture,
gtk_gesture_get_sequence_state() (rather unhelpfully here) will resort
to returning GTK_EVENT_SEQUENCE_NONE, which is in turn interpreted
by _gtk_widget_consumes_motion() as "may be handling the events for
this sequence", because gestures in this state presumably handle
the events, just that it's not "claimed" yet.
Instead, use gtk_gesture_handles_sequence(), which will perform the
expected check on the event sequence being managed, as we expect
here.
Matthias Clasen [Mon, 11 Jan 2016 18:58:37 +0000 (13:58 -0500)]
Actually deprecate GtkNotebook::has-tab-gap
Matthias Clasen [Mon, 11 Jan 2016 18:55:23 +0000 (13:55 -0500)]
notebook: Update CSS node docs
The stack node is new.
Benjamin Otte [Mon, 11 Jan 2016 16:52:38 +0000 (17:52 +0100)]
notebook: Don't reparent tab label when drag stops
Use the same unrealize + set_parent_window() trick that we used in
6d5edd18cf5637274762b7a51488d27d5bed600d when dragging starts.
Benjamin Otte [Mon, 11 Jan 2016 16:46:15 +0000 (17:46 +0100)]
notebook: Add .dnd style class to tabs during reorder
Benjamin Otte [Sat, 9 Jan 2016 13:25:26 +0000 (14:25 +0100)]
notebook: Don't unparent tab label for drag
When a tab drag starts, we need to move the tab label into the drag
window via gtk_widget_set_parent_window().
If we don't unparent, but just unrealize the widget, we don't lose the
cssnode position.
Benjamin Otte [Thu, 7 Jan 2016 14:54:58 +0000 (15:54 +0100)]
notebook: Don't limit motion notify framerate
We have a frameclock for that these days.
In particular, this limiting worked at 45fps when monitors are all 60fps.
Benjamin Otte [Thu, 7 Jan 2016 11:30:05 +0000 (12:30 +0100)]
notebook: Remove outdated style properties from themes
No replacement provided, the notebook will have to be redone anyway.
Benjamin Otte [Thu, 7 Jan 2016 11:28:24 +0000 (12:28 +0100)]
notebook: Don't store gadget allocation twice
If we care about a gadget's allocation, we can ask it. There's no need
to store it in GtkNotebookPage.allocation.
Benjamin Otte [Thu, 7 Jan 2016 11:21:25 +0000 (12:21 +0100)]
notebook: No need to recompute remaining space
The value is correct.
In particular, subtracting width on notebooks with tabs on left/right is
a very bad idea.
Benjamin Otte [Wed, 6 Jan 2016 16:41:41 +0000 (17:41 +0100)]
notebook: Port arrows to be gadgets
Also deprecate the arrow-spacing style property.
Benjamin Otte [Tue, 29 Dec 2015 18:31:04 +0000 (19:31 +0100)]
notebook: Pass full allocation instead of min and max value
Benjamin Otte [Tue, 29 Dec 2015 18:18:02 +0000 (19:18 +0100)]
notebook: Pass allocation as argument
... instead of querying it later.
Benjamin Otte [Tue, 29 Dec 2015 03:42:29 +0000 (04:42 +0100)]
notebook: Simplify allocation code
Benjamin Otte [Fri, 25 Dec 2015 22:44:08 +0000 (23:44 +0100)]
notebook: Identify existence of arrows differently
Instead of having gbooleans in the priv struct, just look at the
existence of priv->arrow_node[i].
Benjamin Otte [Fri, 25 Dec 2015 01:39:43 +0000 (02:39 +0100)]
notebook: Convert tab nodes to gadgets
The code does many bad things, so we get a lot of warning spew. Ignore
this for now, fixes will follow.
Benjamin Otte [Fri, 25 Dec 2015 01:12:15 +0000 (02:12 +0100)]
notebook: Assume tab allocations always change
This causes more redraws, but saves a bunch of code.
Benjamin Otte [Fri, 25 Dec 2015 00:27:22 +0000 (01:27 +0100)]
notebook: Remove weird hack where the current page was special-cased
I don't even know what it does, but it assumed that the current page was
always as large or larger than any other page. And that isn't true.
Benjamin Otte [Fri, 25 Dec 2015 00:19:31 +0000 (01:19 +0100)]
boxgadget: Handle css nodes
Automatically insert the cssnode into the box gadget's node's children at
the right place and remove it again when done.
Benjamin Otte [Thu, 24 Dec 2015 19:38:24 +0000 (20:38 +0100)]
notebook: Replace redraw_tabs() with gadget_queue_draw(tabs_gadget)
Benjamin Otte [Thu, 24 Dec 2015 19:34:54 +0000 (20:34 +0100)]
notebook: Don't queue redraw of tabs junction
There is no junction anymore, so don't try to redraw it.
Benjamin Otte [Thu, 24 Dec 2015 19:33:36 +0000 (20:33 +0100)]
gadget: Add queue_resize/allocate/draw() functions
Benjamin Otte [Thu, 24 Dec 2015 14:26:11 +0000 (15:26 +0100)]
notebook: Convert tabs node to a gadget
And in turn, convert the header gadget to a box gadget.
Benjamin Otte [Wed, 23 Dec 2015 03:09:30 +0000 (04:09 +0100)]
boxgadget: Add
Adds a GtkBoxGadget that is a Gadget that behaves like a GtkBox.
Use this gadget to implement the notebook base gadget.
Benjamin Otte [Wed, 23 Dec 2015 02:40:48 +0000 (03:40 +0100)]
notebook: Remove unused function call
Benjamin Otte [Wed, 23 Dec 2015 02:39:12 +0000 (03:39 +0100)]
notebook: Simplify event window position computation
The event window should overlay the header gadget, so just return its
position.
Benjamin Otte [Wed, 23 Dec 2015 00:18:30 +0000 (01:18 +0100)]
notebook: Introduce gtk_notebook_has_current_page()
GtkNotebook does not switch the current page if all pages are hidden. So
it may be that no visible page exsits, but there still is a current
page set.
We culd clear the current page, but I'm unsure about backwards
compatibility.
So instead, this new function handles that case.
Benjamin Otte [Tue, 22 Dec 2015 22:03:38 +0000 (23:03 +0100)]
notebook: Use gtk_container_class_handle_border_width()
Benjamin Otte [Sat, 19 Dec 2015 21:25:34 +0000 (22:25 +0100)]
notebook: Convert header node to a gadget
This allows reworking the content node to do real height-for-width.
The content node also takes care of border width, but we might want to
have the toplevel do it or just get rid of it.
Benjamin Otte [Sat, 19 Dec 2015 07:46:28 +0000 (08:46 +0100)]
gadget: Add helpers for modifying state
They will be used in future commits.
I also was too lazy to convert existing widgets.
Benjamin Otte [Sat, 19 Dec 2015 07:35:18 +0000 (08:35 +0100)]
notebook: Add a stack gadget
The stack gadget contains all the child widgets.
Benjamin Otte [Sat, 19 Dec 2015 07:10:35 +0000 (08:10 +0100)]
notebook: Remove extra calls to gtk_notebook_pages_allocate()
The function is called during size_allocate() and doesn't need to be
called elsewhere, as all other callers call queue_resize() already.
Benjamin Otte [Sat, 19 Dec 2015 07:04:41 +0000 (08:04 +0100)]
notebook: Remove unnessecary gtk_widget_set_mapped()
We chain up, and the chainedup function calls this for us.
Benjamin Otte [Sat, 19 Dec 2015 07:03:41 +0000 (08:03 +0100)]
notebook: Simplify gtk_notebook_map()
We set visibility on our children properly, so we can simply chain up
and let the GtkContainer implementation do the mapping of children.
Benjamin Otte [Sat, 19 Dec 2015 05:58:14 +0000 (06:58 +0100)]
notebook: Remove irrelevant case
The page is never the current page, because it was just created and the
current page wasn't changed yet.
Benjamin Otte [Sat, 19 Dec 2015 05:56:48 +0000 (06:56 +0100)]
notebook: No page switching in size request code
We have page switching under control now, we don't need to check every
get_preferred_size() call.
Benjamin Otte [Sat, 19 Dec 2015 05:56:04 +0000 (06:56 +0100)]
notebook: Set the current page when none is set
This case happens when you gtk_widget_show_all (notebook).
Benjamin Otte [Sat, 19 Dec 2015 02:57:43 +0000 (03:57 +0100)]
notebook: Draw the same things, no matter the show-border value
show-border modifies the "frame" style class on the notebook node, but
not what we actually draw.
Benjamin Otte [Thu, 17 Dec 2015 23:47:03 +0000 (00:47 +0100)]
notebook: Turn the base notebook into a gadget
Benjamin Otte [Thu, 17 Dec 2015 12:16:12 +0000 (13:16 +0100)]
notebook: Draw tab label while drawing tab
Instead of having special case code doing it.
Benjamin Otte [Thu, 17 Dec 2015 04:51:38 +0000 (05:51 +0100)]
notebook: Don't translate before painting notebook
This will allow us to draw children directly from within the notebook
drawing code, which will remove a bunch of special casing.
Benjamin Otte [Thu, 17 Dec 2015 04:27:51 +0000 (05:27 +0100)]
notebook: Deprecate and stop supporting has-tab-gap style property
Benjamin Otte [Thu, 17 Dec 2015 01:39:24 +0000 (02:39 +0100)]
notebook: Ignore and deprecate style properties
Deprecate initial-gap, tab-curvature and tab-overlap properties. All
their features can be achieved using CSS.
This CSS achieves the same effect as a 10px initial gap:
notebook header {
margin-left: 10px;
margin-right: 10px;
}
A tab overlap of 10px can be achieved via:
notebook tabs {
margin-left: 10px;
}
notebook tab {
margin-left: -10px;
}
And tab curvature is essentially the same as padding or border on a tab.
Benjamin Otte [Wed, 6 Jan 2016 17:14:11 +0000 (18:14 +0100)]
rendericon: Save and restore cairo matrix
... instead of requiring cairo_save()/cairo_restore().
Benjamin Otte [Thu, 24 Dec 2015 17:21:38 +0000 (18:21 +0100)]
testnotebookdnd: Add an action widget
Just so we have some test that tests action widgets.
Benjamin Otte [Sat, 19 Dec 2015 07:09:06 +0000 (08:09 +0100)]
dnd: When setting a dnd icon widget, unset old one
Setting a DND icon twice should actually work and not cause warnings the
2nd time.
Jiro Matsuzawa [Mon, 11 Jan 2016 14:58:16 +0000 (23:58 +0900)]
Updated Japanese translation
Change B series paper names in accordance with the Japanese standards.
Krzesimir Nowak [Mon, 11 Jan 2016 11:05:18 +0000 (12:05 +0100)]
Fix a small mistake in stylecontext docs
Fix the "will be also be" to become "will also be".
Dušan Kazik [Mon, 11 Jan 2016 09:48:05 +0000 (09:48 +0000)]
Updated Slovak translation
Matthias Clasen [Sun, 10 Jan 2016 22:08:56 +0000 (17:08 -0500)]
Update style class docs
Instead of pointing to (outdated) widgets here, just refer to
widget docs in general.
Matthias Clasen [Sun, 10 Jan 2016 21:22:03 +0000 (16:22 -0500)]
Improve GtkStyleContext docs
Refer to the foreign drawing example in gtk3-demo, refer to
the widget documentation for style properties, remove
no-longer-used treeview regions.
Matthias Clasen [Sun, 10 Jan 2016 20:32:53 +0000 (15:32 -0500)]
Add foreigndrawing example to gtk3-demo
This makes it easier accessible and nicer to refer to
from the documentation.
Matthias Clasen [Sun, 10 Jan 2016 19:50:24 +0000 (14:50 -0500)]
Add a css style test for adjacent states
This test checks that the selector E:state + F works as expected.
https://bugzilla.gnome.org/show_bug.cgi?id=722727
Ting-Wei Lan [Sat, 9 Jan 2016 09:24:12 +0000 (17:24 +0800)]
Cast the return value of g_array_free to void* before casting to char**
Let the compiler know that we don't want to use it as char*, so there is
no alignment error.
https://bugzilla.gnome.org/show_bug.cgi?id=760350
https://bugzilla.gnome.org/show_bug.cgi?id=755659
Rico Tzschichholz [Sun, 10 Jan 2016 15:49:42 +0000 (16:49 +0100)]
GdkSeat: Fix annotation of gdk_seat_grab()
Matthias Clasen [Sun, 10 Jan 2016 04:42:37 +0000 (23:42 -0500)]
Fix rendering of unsymmetric borders
There was an errant path that threw off our clipping for
the top section of the border.
https://bugzilla.gnome.org/show_bug.cgi?id=722937
Matthias Clasen [Sat, 9 Jan 2016 22:30:33 +0000 (17:30 -0500)]
Avoid division by 0 in the border rendering code
We skip sides with 0 border width in render_border, but when
we collect sides with the same style, we may pass the 0 width
down to render_frame_stroke anyway. So skip width 0 sides
there as well.
Jiri Grönroos [Sat, 9 Jan 2016 21:39:37 +0000 (21:39 +0000)]
Updated Finnish translation
Matthias Clasen [Sat, 9 Jan 2016 19:36:05 +0000 (14:36 -0500)]
Fix dobule border rendering
This is the same fix that was applied for ridge and groove
style in
9f27ee7f5abf49a20ac95d57b306ecd4294b49c6.
Lapo Calamandrei [Sat, 9 Jan 2016 19:05:41 +0000 (20:05 +0100)]
Adwaita: transparent background for progressbar.osd
Hopefully fixes https://bugzilla.gnome.org/show_bug.cgi?id=760331
Added the .osd style class to the progressbar docs.
Lapo Calamandrei [Sat, 9 Jan 2016 18:27:15 +0000 (19:27 +0100)]
gtkheaderbar: add titlebutton styleclass to the separator
...of the window control buttons
Lapo Calamandrei [Sat, 9 Jan 2016 17:03:26 +0000 (18:03 +0100)]
Adwaita: shortcut window related fixes
Lapo Calamandrei [Sat, 9 Jan 2016 14:30:20 +0000 (15:30 +0100)]
Adwaita: avoid colorswatch growing when drop targets
Lapo Calamandrei [Sat, 9 Jan 2016 13:36:05 +0000 (14:36 +0100)]
Adwaita: more scss cosmetics
Lapo Calamandrei [Sat, 9 Jan 2016 12:35:48 +0000 (13:35 +0100)]
Adwaita: rely on background-image for paned wide separators
this workaround fixes the rendering issue coming out using borders
Lapo Calamandrei [Sat, 9 Jan 2016 12:04:27 +0000 (13:04 +0100)]
Adwaita: make the paned wide separator scss code correct
unfortunatelly the results are not, borders behaves in a weird way
here as well, if this don't get fixed I'll rely on background here
too.
Lapo Calamandrei [Sat, 9 Jan 2016 11:38:49 +0000 (12:38 +0100)]
Adwaita: some scss cosmetic changes
Lapo Calamandrei [Sat, 9 Jan 2016 11:31:41 +0000 (12:31 +0100)]
Adwaita: fix thin paned separators
Lapo Calamandrei [Sat, 9 Jan 2016 11:05:31 +0000 (12:05 +0100)]
Adwaita: use stricter selectors on paned separators
this fixes the "fat" separator on gedit headerbar, since it was
cought by the paned separator styling.
Lapo Calamandrei [Sat, 9 Jan 2016 10:55:40 +0000 (11:55 +0100)]
Adwaita: remove old headerbar separator styling
which was actually selecting nothing now.
Lapo Calamandrei [Sat, 9 Jan 2016 10:25:08 +0000 (11:25 +0100)]
Adwaita: add vertical margins to headebar entries and separators
Lapo Calamandrei [Sat, 9 Jan 2016 09:19:47 +0000 (10:19 +0100)]
Adwaita: add vertical margins to headerbar buttons
to avoid them spanning the whole headerbar height with the changes
introduced in my last commit.
Matthias Clasen [Sat, 9 Jan 2016 04:31:48 +0000 (23:31 -0500)]
CSS documenation improvements
Work around some problems with the formatting of the online
docs, and split off the properties as a separate chapter.
Matthias Clasen [Fri, 8 Jan 2016 19:51:36 +0000 (14:51 -0500)]
3.19.6
Matthias Clasen [Fri, 8 Jan 2016 22:51:53 +0000 (17:51 -0500)]
Fix make dist
I've forgotten another place when renaming HighContrast inverse.
Matthias Clasen [Fri, 8 Jan 2016 20:56:27 +0000 (15:56 -0500)]
reftests: Drop deprecated style properties